QT       += core gui
QT += serialbus
QT += serialport
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17
CONFIG += shared

TARGET = hmi_library
TEMPLATE = lib

# 导出符号
DEFINES += HMI_LIBRARY_EXPORT

SOURCES += \
    hmi_element.cpp \
    hmi_graphics_scene.cpp \
    hmi_module.cpp \
    hmi_library_export.cpp

HEADERS += \
    hmi_element.h \
    hmi_graphics_scene.h \
    hmi_module.h \
    module_interface.h \
    hmi_library_export.h

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

# 设置输出目录
CONFIG(debug, debug|release) {
    DESTDIR = ../debug
    OBJECTS_DIR = ../debug
} else {
    DESTDIR = ../release
    OBJECTS_DIR = ../release
}

unix:!mac {
    QMAKE_LFLAGS += -Wl,-rpath,'$$ORIGIN'
}


